Zum Hauptinhalt springen
POST
/
public
/
v1
/
segment-service
/
segments
/
{segment-id}
/
upload
[BETA] Upload users to a segment.
curl --request POST \
  --url https://api.topsort.com/public/v1/segment-service/segments/{segment-id}/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Autorisierungen

Authorization
string
header
erforderlich

A valid API key generated in Topsort's UI.

Pfadparameter

segment-id
string
erforderlich

The external ID of the segment.

Abfrageparameter

action
enum<string>
Standard:add

The action to perform on the segment.

Verfügbare Optionen:
add,
remove,
replace

Body

multipart/form-data
file
file
erforderlich

Antwort

Successful Response